import xadmin
from .models import Article,Comment


class ArticleAdmin:
    list_display = ["author","content","title"]


class CommentAdmin:
    list_display = ["user","article","comment"]


xadmin.site.register(Article,ArticleAdmin)
xadmin.site.register(Comment,CommentAdmin)